package com.laf.mall.api.dao;

import com.laf.mall.api.dto.Reward;
import com.laf.mall.api.repository.RewardRepository;
import com.laf.mall.api.repository.SettingsRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author ygl
 * @create 2018-12-24
 * @DESCRIPTION
 **/
@Component
public class RewardDao {


    @Autowired
    RewardRepository repository;


    public Reward getValidCouponByRegister() {
        return repository.getValidCouponByRegister();
    }
}
